package com.text;

public class food {
  public String shicai;
  public int size;

    public food(String shicai, int size) {
        this.shicai = shicai;
        this.size = size;
    }

    public int getSize() {
        return size;
    }

    public String getShicai() {
        return shicai;
    }

    public void setShicai(String shicai) {
        this.shicai = shicai;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
class dabanggu extends food{
    public dabanggu(String shicai, int size) {
        super(shicai, size);
    }
}
class xiaoyi extends food{
    public xiaoyi(String shicai, int size) {
        super(shicai, size);
    }
}